<?php

	/**
     * Environment
     *
     * @package      Core
	 * @subpackage	 Helper
     *
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
	 */
	class Core_Helper_Environment
	{
		/**
		 * Gets a value indicating wether the OS is Windows based
		 *
		 * @return		boolean		true if the OS is Windows, otherwise false
		 */
		public static function isWin32()
		{
            if (preg_match("/^(\w+).*$/", PHP_OS, $m)) {
                $os = $m[1];
            } else {
                $os = PHP_OS;
            }

            return (strpos(strtolower($os), 'win') !== false) ? true : false;
		}
	}
